package com.wangcanxuan.www.entity.po;

import com.wangcanxuan.www.annotation.orm.Column;
import com.wangcanxuan.www.annotation.orm.PrimaryKey;
import com.wangcanxuan.www.annotation.orm.Table;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 申请实体类与数据库apply表一一映射
 *
 * @author HHLJ
 * @date 2022/03/15
 */
@Table(tableName = "apply")
public class Apply {
    @PrimaryKey
    @Column(columnName = "id",description = "主键")
    private String id;

    @Column(columnName = "applicant_id",description = "申请人的id")
    private String applicantId;

    @Column(columnName = "applying_tribe_id",description = "申请的部落id")
    private String applyingTribeId;

    @Column(columnName = "auditor_id",description = "审批人id")
    private String auditorId;

    @Column(columnName = "status",description = "申请状态")
    private Integer status;

    @Column(columnName = "solve_date",description = "处理时间")
    private LocalDateTime solveDate;

    public Apply() {
    }

    public Apply(String applicantId) {
        this.applicantId = applicantId;
    }

    public Apply(String applicantId, String applyingTribeId) {
        this.applicantId = applicantId;
        this.applyingTribeId = applyingTribeId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getApplicantId() {
        return applicantId;
    }

    public void setApplicantId(String applicantId) {
        this.applicantId = applicantId;
    }

    public String getApplyingTribeId() {
        return applyingTribeId;
    }

    public void setApplyingTribeId(String applyingTribeId) {
        this.applyingTribeId = applyingTribeId;
    }

    public String getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(String auditorId) {
        this.auditorId = auditorId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getSolveDate() {
        return solveDate;
    }

    public void setSolveDate(LocalDateTime solveDate) {
        this.solveDate = solveDate;
    }
}
